Skip to content

feat(ble): Add BLE beacon advertising example with OLED display.#8

Open
MatteoCnda1 wants to merge 2 commits intomainfrom
feat/ble-beacon-advertising
Open

feat(ble): Add BLE beacon advertising example with OLED display.#8
MatteoCnda1 wants to merge 2 commits intomainfrom
feat/ble-beacon-advertising

Conversation

@MatteoCnda1
Copy link
Copy Markdown

Summary

Add a BLE beacon advertising example using aioble and steami_screen on the STeaMi board. Closes #409

Changes

  • Added BLE/BLE_Beacon/main.py: a single-file BLE beacon example that:
    • Reads live temperature from the WSEN-PADS sensor
    • Broadcasts a BLE advertisement containing the board name (STeaMi-XXXX) and the temperature encoded as int16 x100 in manufacturer-specific data
    • Displays the device name, current temperature and advertising status on the round OLED using steami_screen
    • Uses a fully asynchronous design with uasyncio (sensor_task, ble_task, display_task)
  • Device name is unique per board, generated from the last 2 bytes of the MAC address
  • Beacon is visible from any BLE scanner app (nRF Connect, LightBlue, etc.)

Checklist

  • Tested on hardware (STM32WB55 / STeaMi board)
  • Beacon visible on nRF Connect with correct temperature value
  • Examples added (BLE/BLE_Beacon/main.py)
  • Commit messages follow <scope>: <Description.> format

Removed unnecessary imports for sys and path adjustments.

Signed-off-by: MatteoCnda1 <matteodaniel13960@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant